package ar.com.muebleria.controller;

import javax.swing.JInternalFrame;

import ar.com.muebleria.model.dao.DAOCombos;
import ar.com.muebleria.view.ventanasInternas.VistaIngreso;

public class EntradaController implements InterfaceVista {
	public VistaIngreso vistaIngreso;
	public EntradaController(){
		DAOCombos daoCombos = new DAOCombos();
		
		vistaIngreso = VistaIngreso.getInstance(daoCombos.obtenerCombo("familia", "ID_FAMILIA", "DESCRIPCION"),
			daoCombos.obtenerCombo("sub_familia", "ID_SUB_FAMILIA", "DESCRIPCION"));
		
	}
	/* (non-Javadoc)
	 * @see ar.com.muebleria.controller.InterfaceVista#getVista()
	 */
	@Override
	public JInternalFrame getVista() {
		return vistaIngreso;
	}
	
}
